﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using cart.service;
using System.Data.SqlClient;
using cart.utils;
using cart.model;

namespace cart.web
{
    public partial class test : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //productService ps = new productService();
            //ArrayList aList = ps.getProductByType("isHot",6);
            //this.GridView1.DataSource = aList;
            //this.GridView1.DataBind();

            //string sql = "insert into user valeus(@username,@password)";
            //SqlParameter parm = new SqlParameter("@username","ousinka");
            //this.Response.Write(sql);
            //this.Response.Write(parm);

            //ArrayList al = new ArrayList();
            //if (al != null)
            //{
            //    this.Response.Write("al is not null");
            //    this.Response.Write(al.Count);
            //}
            //else
            //{
            //    this.Response.Write("al is null");
            //}

            orderServiec os = new orderServiec();
            orderModel om = new orderModel();

            om = os.getOrderByID(8);
            ArrayList al = new ArrayList();
            al.Add(om);
            this.GridView1.DataSource = al;
            this.GridView1.DataBind();


        }
        protected void a_onclicke()
        {
            this.Response.Write("haha");
        }

        protected void addCart_Click(object sender, EventArgs e)
        {
            this.Response.Write("haha");
            this.Response.Write(globalID.getMaxOrderID());
        }


    }
}
